import axios from "@/utils/index.js";

export function fofaVpsList() {
  return axios.get('/fofa/list');
}

export function downloadJsonVpsList(ids) {
  console.log(ids,`ids`);
  
  return axios.post('/fofa/downloadJson', ids,{responseType: 'blob' });
}
export function downloadXmlVpsList(ids) {
  return axios.post('/fofa/downloadXml', ids,{responseType: 'blob' });
}
export function downloadinsertList(from) {
  return axios.post('/fofa/insert', from);
}
export function downloadupdateList(data) {
  return axios.post('/fofa/update', data);
}
export function downloaddeleteList(id) {
  console.log(12321321321,id);
  
  return axios.post(`/fofa/delete/${id}` );
}
export function downloadXlsVpsList(ids) {
  return axios.post('/fofa/downloadXls', ids, { responseType: 'blob' });
}
export function selseloadXlsVpsList(data) {
  console.log(data,`data`);
  
  return axios.get('/fofa/condition', { params: data });
}